package com.sumainfor.pc.epc.controller.tenant;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.service.HoHpiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author Meng
 * @ClassName TenantZhiNengController
 * @date 2020/1/11 11:50
 * @description: TODO
 */
@Controller
@RequestMapping("/tenant/key/TenantZhiNeng")
public class TenantZhiNengController {


    @Autowired
    HoHpiService hoHpiService;


    /**
     * 获取房源配置(智能门锁)
     * @param params
     * @return
     */
    @ResponseBody
    @PostMapping("/getTenRoom")
    public JsonResult getTenRoom(@RequestBody Map<String,Object> params){
        return hoHpiService.getTenRoom(params);
    }
}
